if condition inside echo in php

97

if condition inside echo in php -

echo '<option value="'.$value.'" '.(($value=='United States')?'selected="selected"':"").'>'.$value.'</option>';

Comments

Submit
0 Comments